<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
</script>
    <div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#"   onclick="loadDiv('mainCenterDiv','${ctx}/csm/expStorageDept/index')">消耗品库存单位字典列表</a>
                </li>
                <li>
                    <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/csm/expStorageDept/form')">消耗品库存单位字典添加</a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="table-responsive no-border">
                        <div class="datatable-top">
                            <div class="pull-left">
                            	<form:form id="searchForm" modelAttribute="expStorageDept"  onsubmit="return loadDivForm('mainCenterDiv','searchForm','${ctx}/csm/expStorageDept/index');" method="post" class="form-inline">
                                    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                                    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
                                    <div class="form-group"><label>库房名称:&nbsp;&nbsp;</label><form:input path="storageName" maxlength="50" class="form-control"></form:input></div>
                                    <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                                </form:form>
                            </div>
                        </div>
                        <table id="contentTable" class="table table-bordered mg-t datatable">
                            <thead>
                                <tr>
                                        <%--<th>单位代码</th>--%>
                                        <th>库房名称</th>
                                        <th>库房等级</th>
                                        <th>付款单前缀</th>
                                        <th>当前付款单号</th>
                                    <%--    <th>出库单可用流水号</th>--%>
                                        <th>出库单号前缀</th>
                                       <%-- <th>入库单可用流水号</th>--%>
                                        <th>入库单号前缀</th>
                                        <th>备注信息</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${page.list}" var="expStorageDept">
                                <tr>
                                        <%--<td>${expStorageDept.storageCode}</td>--%>
                                        <td> ${expStorageDept.storageName}</td>
                                        <td> ${fns:getDictLabels(expStorageDept.storageLevel,"STORAGE_LEVEL" ,"" )}</td>
                                        <td> ${expStorageDept.disburseNoPrefix}</td>
                                        <td> ${expStorageDept.disburseNoAva}</td>
                                       <%-- <td> ${expStorageDept.exportNoAva}</td>--%>
                                        <td> ${expStorageDept.exportNoPrefix}</td>
                                       <%-- <td> ${expStorageDept.importNoAva}</td>--%>
                                        <td> ${expStorageDept.importNoPrefix}</td>
                                        <td> ${expStorageDept.remarks}</td>
                                    <td>
                                        <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/csm/expStorageDept/form?id=${expStorageDept.id}')" class="btn btn-success btn-xs">修改</a>
                                        <a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该消耗品库存单位字典吗？',function(){delLoad('mainCenterDiv','${ctx}/csm/expStorageDept/delete?id=${expStorageDept.id}','${ctx}/csm/expStorageDept/index')})">删除</a>
                                    </td>
                                </tr>
                            </c:forEach>

                        </table>
                        <div class="pagination">${page}</div>
                    </div>
                </div>
            </section>
        </div>
    </div>